<?php 
session_start();
	ob_start();
require_once 'libararries/connect.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="public/css/style.css" />
<script type="text/javascript" src="public/js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="public/css/menu_ngang.css" />
<script type="text/javascript" src="public/js/ddaccordion.js"></script>
<script type="text/javascript" src="public/js/menu_doc.js"></script>
<link rel="stylesheet" type="text/css" href="public/css/menu_doc.css" />
<script src="public/magiczoomplus/magiczoomplus.js" type="text/javascript"></script>
<link href="public/magiczoomplus/magiczoomplus.css" rel="stylesheet" type="text/css" media="screen"/>
 <script type="text/javascript">
            MagicZoomPlus.options = {
                'disable-expand': true,
                'hint-text': 'Zoom'
            }
        </script>

<title>Trang chủ</title>
</head>
<body>
	<div id="warper">
	<div id="containter_contain">
    	<div id="header">
    	<div id="banner"></div>
        <div id="menu_search">
	 <!-- menu ngang -->
			<div id="menu">
           		<ul id="nav">
                     <li><span class="menu_left"></span><a href="index.php"><b>Trang chủ</b></a><span class="menu_right"></span></li>
                                
                    <li><span class="menu_left"></span><a href="index.php?mod=gioithieu"><b>Giới thiệu</b></a><span class="menu_right"></span></li>
                    <li><span class="menu_left"></span><a href="index.php?mod=tintuc"><b>Tin tức sự kiên</b></a><span class="menu_right"></span></li>
                    <li><span class="menu_left"></span><a href=""><b>Khuyến mãi</b></a><span class="menu_right"></span></li>
                    <li><span class="menu_left"></span><a href=""><b>Liên hệ</b></a><span class="menu_right"></span></li>
                </ul>
          	</div>
         <!-- end menu ngang -->
         <!-- tim kiem -->
					<?php require_once 'views/main/timkiem/index.php'; ?>
          </div>
         <!-- end -->
  </div><!--END header-->
    	<div id="than">
        	<div id="cottrai">
          	<?php 
			require_once 'controllers/main/controllers_menu.php';
			require_once 'views/main/hotroonline/index.php';
			?>
		
            </div><!--END cottrai-->
            <div id="cotgiua">          
            	 <?php if(isset($_GET['mod'])){?>
           			<?php 
           				switch ($_GET['mod'])
           				{
           					
           					case 'detail':
           					case 'sanpham':{
           						require_once 'controllers/main/controllers_sanpham.php';
           						break;
           					}
           					case 'delcart':
           					case 'dathang':
							{
								require_once 'controllers/main/controllers_dathang.php';
								break;
							}
							case 'giohang':
							
							{
								require_once 'controllers/main/controllers_giohang.php';
								break;
							}
           					case 'tintuc':
           					case 'detailtin':
           						{
           							require_once 'controllers/main/controllers_tin.php';
           							break;
           						}
           					case 'mua':
           					case 'thanhtoan':
           						{
           						require_once 'controllers/main/controllers_thanhtoan.php';
           						break;
           					           				
           					}
							case 'dangky':
							case 'dangkythanhcong':
								{
								require_once 'controllers/main/controllers_dangky.php';
								break;
								}
							case 'timmathang':{
								
								require_once 'controllers/main/controllers_timkiem.php';
								break;
							}
           				case 'gioithieu':{
								
								require_once 'controllers/main/controllers_gioithieu.php';
								break;
							}
						
							
           				}
            	 }
           			
                   	else
                   		{
        					require_once 'controllers/main/controllers_sanpham.php';
                   		}
       		?>
            </div><!--END cotgiua-->
            <div id="cotphai">
          
            	<?php 
            	include_once 'views/main/right/right.php';
				?>
            
            </div><!--END cotphai-->
        </div><!--END than-->
        <div id="footer">
        		<?php include 'views/main/footer/footer.php';?>
 
        </div><!--END footer-->
        </div>
    </div><!--END warper-->
</body>

</html>
<?php ob_end_flush();?>